package com.atguigu.classes.preconditions;

import java.util.Random;

/**
 * @program: myIDEA
 * @description: 随机数
 * @author: Mr.zjx
 * create: 2021-07-06-11-20
 **/
public class Test11 {
    public static void main(String[] args) {
        Random random = new Random();
        for(int i = 0;i<10; i++){
            int r = random.nextInt(100);//0-99之间的随机数
            System.out.println(r);
        }
    }
}
